﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using AutoMapper;
using FwProject.Commodity.Dto;
using FwProject.EventAdvertising.Dto;
using FwProject.ShoppingMall.Shop;
using X.PagedList;

namespace FwProject.Shop.Dto
{

    public class ShopProductDetailsAppDto : EntityDto<Guid>
    {
        /// <summary>
        /// 商品基本详情
        /// </summary>
        public ShopProductAppDto shopProductAppDto { get; set; }

        /// <summary>
        /// 该商品的评论信息
        /// </summary>
        public IPagedList<CommodityReviewsShopDetailsDto> CommodityReviewsShopDetailsDtos{ get;set;}
        /// <summary>
        /// 购物车总数量
        /// </summary>
        public int CarCount { get; set; }
        /// <summary>
        /// 获取此商品在购物车中的数量
        /// </summary>
        public int ShopCarCount { get; set; }
        /// <summary>
        /// 是否收藏
        /// </summary>
        public bool CommodityCollection { get; set; }
        /// <summary>
        /// 如果是秒杀商品得到一个秒杀对象
        /// </summary>
        public ShopSecondkillDto ShopSecondkillDto { get; set; }=new ShopSecondkillDto();


    }
}
